function tabbarinit() {
	return [{
			"current": 0,
			"pagePath": "pages/index/index",
			"iconPath": "",
			"selectedIconPath": "",
			"text": "首页"
		},
		{
			"current": 0,
			"pagePath": "pages/flow/index",
			"iconPath": "",
			"selectedIconPath": "",
			"text": "购物车"

		},
		{
			"current": 0,
			"pagePath": "pages/jifen/index/index",
			"iconPath": "",
			"selectedIconPath": "",
			"text": "积分商城"
		},
		{
			"current": 0,
			"pagePath": "pages/user/index",
			"iconPath": "",
			"selectedIconPath": "",
			"text": "个人中心"
		}
	]

}
//tabbar 主入口
function tabbarmain(bindName = "tabdata", id, target) {
	var that = target;
	var bindData = {};
	var otabbar = tabbarinit();
	otabbar[id]['current'] = 1;
	console.log(id)
	bindData[bindName] = otabbar
	that.setData({
		bindData
	});
}

module.exports = {
	tabbar: tabbarmain
}
